package com.biz;

import com.dao.Order_detailMapper;
import com.entity.Order_detail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IOrder_detailBizImp implements  IOrder_detailBiz{

    @Autowired
    private Order_detailMapper dao;

    public Order_detailMapper getDao() {
        return dao;
    }

    public void setDao(Order_detailMapper dao) {
        this.dao = dao;
    }

    @Override
    public List<Order_detail> getAll() {
        return dao.getAll();
    }

    @Override
    public Order_detail getByIdAndUid(Integer oid,Integer uid) {
        return dao.getByIdAndUid(oid, uid);
    }

    @Override
    public void add_order_detail(Order_detail det) {
        dao.add_detail(det);
    }
}
